﻿using DataAccessObjectLayer;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ModelLayer;
using System.Collections.Generic;

namespace UnitTest
{
    [TestClass]
    public class UnitTestEdge
    {
        private DBEdge _dbEdge;

        /// <summary>
        /// Tests the method1.
        /// </summary>
        [TestMethod]
        public void TestMethod1()
        {
            _dbEdge = new DBEdge();
            // List<Edge> edgeList = dbEdge.GetAllEdges();
            List<Edge> stationEdgeList = _dbEdge.GetEdges(1);

            Assert.AreNotEqual(0, stationEdgeList.Count);
        }

        /// <summary>
        /// Tests the method2.
        /// </summary>
        [TestMethod]
        public void TestMethod2()
        {
            _dbEdge = new DBEdge();
            //TimeSpan time = new TimeSpan(0, 40, 0);
            //int rc = dbEdge.CreateEdge(new Edge(1, 22, 20, time));
            List<Edge> list = _dbEdge.GetEdges(1);
            Assert.AreNotEqual(0, list.Count);
        }
    }
}